<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的订单</title>
</head>
<body>
<form action="/order/myorder/search" method="post">
    开始时间：<input type="date" name="startTime" /> <br/>
    结束时间：<input type="date" name="endTime" /> <br/>
    <input type="submit" value="查询" /> <br/>
</form>

<h2>我的订单</h2>
<#if orders??>
    <#list orders as order>
        订单编号：${order.id}<br/>
        订单状态：${order.state}<br/>
        订单创建时间：${order.createTime}<br/>
        <#list order.items as item>
            ${item.name}<br/>
        </#list>
        <#if order.state!="CANCELLED"><a href="/order/clear?orderId=${order.id}">取消订单</a></#if>
        <HR color=#987cb9 SIZE=2> <br/>
    </#list>
</#if>
</body>
</html>